import { Types } from '@amcax/base';
import { docMgr } from '@app-cad/module';

export const isShapePlaneCopyChild = (dxid: string) =>
  !!dxid &&
  docMgr.flatDocumentObjects.find((obj) =>
    obj.children?.some((child) => child.dxid === dxid),
  )?.type === Types.PLANE_COPY;
